home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / 3dtabs / misc.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1995-05-08  |  40.9 KB  |  1,171 lines

  1. VERSION 2.00
  2. Begin Form Misc 
  3.    BackColor       =   &H00C0C0C0&
  4.    BorderStyle     =   1  'Fixed Single
  5.    Caption         =   "Miscellaneous Controls"
  6.    ClientHeight    =   5670
  7.    ClientLeft      =   945
  8.    ClientTop       =   915
  9.    ClientWidth     =   8220
  10.    ClipControls    =   0   'False
  11.    Height          =   6075
  12.    Icon            =   MISC.FRX:0000
  13.    Left            =   885
  14.    LinkTopic       =   "Form2"
  15.    MaxButton       =   0   'False
  16.    ScaleHeight     =   378
  17.    ScaleMode       =   3  'Pixel
  18.    ScaleWidth      =   548
  19.    Top             =   570
  20.    Width           =   8340
  21.    Begin SSPanel p2 
  22.       BackColor       =   &H00C0C0C0&
  23.       Caption         =   "p2"
  24.       Font3D          =   3  'Inset w/light shading
  25.       Height          =   4785
  26.       Left            =   915
  27.       Outline         =   -1  'True
  28.       RoundedCorners  =   0   'False
  29.       TabIndex        =   13
  30.       Top             =   495
  31.       Width           =   7140
  32.       Begin SSPanel NewPages 
  33.          BackColor       =   &H00C0C0C0&
  34.          BevelOuter      =   1  'Inset
  35.          BorderWidth     =   6
  36.          Font3D          =   3  'Inset w/light shading
  37.          Height          =   3855
  38.          Left            =   120
  39.          RoundedCorners  =   0   'False
  40.          TabIndex        =   44
  41.          Tag             =   "Pages"
  42.          Top             =   600
  43.          Width           =   5775
  44.          Begin CommandButton newpage 
  45.             BackColor       =   &H00000000&
  46.             Caption         =   "Create"
  47.             Height          =   375
  48.             Index           =   0
  49.             Left            =   3120
  50.             TabIndex        =   54
  51.             Top             =   2160
  52.             Width           =   2055
  53.          End
  54.          Begin CommandButton newpage 
  55.             BackColor       =   &H00000000&
  56.             Caption         =   "Destroy"
  57.             Height          =   375
  58.             Index           =   1
  59.             Left            =   3120
  60.             TabIndex        =   56
  61.             Top             =   2760
  62.             Width           =   2055
  63.          End
  64.          Begin SSFrame Frame3D5 
  65.             Caption         =   "Caption"
  66.             Font3D          =   3  'Inset w/light shading
  67.             FontBold        =   0   'False
  68.             FontItalic      =   0   'False
  69.             FontName        =   "MS Sans Serif"
  70.             FontSize        =   8.25
  71.             FontStrikethru  =   0   'False
  72.             FontUnderline   =   0   'False
  73.             ForeColor       =   &H00000000&
  74.             Height          =   975
  75.             Left            =   2880
  76.             TabIndex        =   51
  77.             Top             =   720
  78.             Width           =   2415
  79.             Begin TextBox newtag 
  80.                Height          =   285
  81.                Left            =   240
  82.                MaxLength       =   13
  83.                TabIndex        =   53
  84.                Top             =   360
  85.                Width           =   1935
  86.             End
  87.          End
  88.          Begin SSFrame Frame3D6 
  89.             Caption         =   "Controls"
  90.             Font3D          =   3  'Inset w/light shading
  91.             FontBold        =   0   'False
  92.             FontItalic      =   0   'False
  93.             FontName        =   "MS Sans Serif"
  94.             FontSize        =   8.25
  95.             FontStrikethru  =   0   'False
  96.             FontUnderline   =   0   'False
  97.             ForeColor       =   &H00000000&
  98.             Height          =   2655
  99.             Left            =   240
  100.             TabIndex        =   48
  101.             Top             =   720
  102.             Width           =   2415
  103.             Begin SSCheck chk 
  104.                Caption         =   "   Picturebox"
  105.                Font3D          =   0  'None
  106.                Height          =   255
  107.                Index           =   3
  108.                Left            =   240
  109.                TabIndex        =   16
  110.                Top             =   1995
  111.                Value           =   -1  'True
  112.                Width           =   1335
  113.             End
  114.             Begin SSCheck chk 
  115.                Caption         =   "   Checkboxes"
  116.                Font3D          =   0  'None
  117.                Height          =   255
  118.                Index           =   2
  119.                Left            =   240
  120.                TabIndex        =   17
  121.                Top             =   1680
  122.                Value           =   -1  'True
  123.                Width           =   1575
  124.             End
  125.             Begin SSCheck chk 
  126.                Caption         =   "    Caption Panel"
  127.                Font3D          =   0  'None
  128.                Height          =   255
  129.                Index           =   1
  130.                Left            =   240
  131.                TabIndex        =   18
  132.                Top             =   1320
  133.                Value           =   -1  'True
  134.                Width           =   1695
  135.             End
  136.             Begin SSCheck chk 
  137.                Caption         =   "   Textbox"
  138.                Font3D          =   0  'None
  139.                Height          =   255
  140.                Index           =   0
  141.                Left            =   240
  142.                TabIndex        =   49
  143.                Top             =   960
  144.                Value           =   -1  'True
  145.                Width           =   1335
  146.             End
  147.             Begin Label Label2 
  148.                BackStyle       =   0  'Transparent
  149.                Caption         =   "Include these controls on the new page:"
  150.                FontBold        =   0   'False
  151.                FontItalic      =   0   'False
  152.                FontName        =   "MS Sans Serif"
  153.                FontSize        =   8.25
  154.                FontStrikethru  =   0   'False
  155.                FontUnderline   =   0   'False
  156.                Height          =   615
  157.                Left            =   240
  158.                TabIndex        =   60
  159.                Top             =   360
  160.                Width           =   1935
  161.             End
  162.          End
  163.          Begin SSPanel Panel3D5 
  164.             BackColor       =   &H00C0C0C0&
  165.             BevelOuter      =   1  'Inset
  166.             BorderWidth     =   6
  167.             Caption         =   "Pages"
  168.             Font3D          =   3  'Inset w/light shading
  169.             FontBold        =   0   'False
  170.             FontItalic      =   0   'False
  171.             FontName        =   "MS Sans Serif"
  172.             FontSize        =   13.5
  173.             FontStrikethru  =   0   'False
  174.             FontUnderline   =   0   'False
  175.             Height          =   375
  176.             Left            =   240
  177.             RoundedCorners  =   0   'False
  178.             TabIndex        =   45
  179.             Top             =   120
  180.             Width           =   5295
  181.          End
  182.       End
  183.       Begin SSPanel panel3d 
  184.          BackColor       =   &H00C0C0C0&
  185.          BevelOuter      =   1  'Inset
  186.          Font3D          =   3  'Inset w/light shading
  187.          Height          =   3855
  188.          Left            =   360
  189.          TabIndex        =   20
  190.          Tag             =   "Properties"
  191.          Top             =   3000
  192.          Width           =   5775
  193.          Begin CommandButton Command1 
  194.             BackColor       =   &H00000000&
  195.             Caption         =   "Apply Now"
  196.             Height          =   375
  197.             Left            =   1800
  198.             TabIndex        =   33
  199.             Top             =   2880
  200.             Width           =   2175
  201.          End
  202.          Begin SSPanel Panel3D1 
  203.             BackColor       =   &H00C0C0C0&
  204.             BevelOuter      =   1  'Inset
  205.             Caption         =   "Tab Control Properties"
  206.             Font3D          =   3  'Inset w/light shading
  207.             FontBold        =   0   'False
  208.             FontItalic      =   0   'False
  209.             FontName        =   "MS Sans Serif"
  210.             FontSize        =   13.5
  211.             FontStrikethru  =   0   'False
  212.             FontUnderline   =   0   'False
  213.             Height          =   375
  214.             Left            =   240
  215.             TabIndex        =   32
  216.             Top             =   120
  217.             Width           =   5295
  218.          End
  219.          Begin SSFrame Frame3D2 
  220.             Caption         =   "Columns"
  221.             Font3D          =   3  'Inset w/light shading
  222.             FontBold        =   0   'False
  223.             FontItalic      =   0   'False
  224.             FontName        =   "MS Sans Serif"
  225.             FontSize        =   8.25
  226.             FontStrikethru  =   0   'False
  227.             FontUnderline   =   0   'False
  228.             ForeColor       =   &H00000000&
  229.             Height          =   1695
  230.             Left            =   3240
  231.             TabIndex        =   29
  232.             Top             =   840
  233.             Width           =   2175
  234.             Begin SSOption o1 
  235.                Caption         =   "  3"
  236.                Font3D          =   0  'None
  237.                Height          =   255
  238.                Index           =   1
  239.                Left            =   360
  240.                TabIndex        =   31
  241.                Top             =   1080
  242.                Value           =   -1  'True
  243.                Width           =   1215
  244.             End
  245.             Begin SSOption o1 
  246.                Caption         =   "  2"
  247.                Font3D          =   0  'None
  248.                Height          =   255
  249.                Index           =   0
  250.                Left            =   360
  251.                TabIndex        =   30
  252.                TabStop         =   0   'False
  253.                Top             =   600
  254.                Width           =   1215
  255.             End
  256.          End
  257.          Begin SSFrame f 
  258.             Caption         =   "Orientation"
  259.             Font3D          =   3  'Inset w/light shading
  260.             FontBold        =   0   'False
  261.             FontItalic      =   0   'False
  262.             FontName        =   "MS Sans Serif"
  263.             FontSize        =   8.25
  264.             FontStrikethru  =   0   'False
  265.             FontUnderline   =   0   'False
  266.             ForeColor       =   &H00000000&
  267.             Height          =   1695
  268.             Left            =   360
  269.             TabIndex        =   26
  270.             Top             =   840
  271.             Width           =   2175
  272.             Begin SSOption o 
  273.                Caption         =   "tabs down"
  274.                Font3D          =   0  'None
  275.                Height          =   255
  276.                Index           =   1
  277.                Left            =   240
  278.                TabIndex        =   28
  279.                TabStop         =   0   'False
  280.                Top             =   1080
  281.                Width           =   1335
  282.             End
  283.             Begin SSOption o 
  284.                Caption         =   "tabs up"
  285.                Font3D          =   0  'None
  286.                Height          =   255
  287.                Index           =   0
  288.                Left            =   240
  289.                TabIndex        =   27
  290.                Top             =   600
  291.                Value           =   -1  'True
  292.                Width           =   1335
  293.             End
  294.          End
  295.       End
  296.       Begin PictureBox Generic 
  297.          BackColor       =   &H00C0C0C0&
  298.          ClipControls    =   0   'False
  299.          Height          =   3855
  300.          Index           =   0
  301.          Left            =   6360
  302.          ScaleHeight     =   3825
  303.          ScaleWidth      =   5745
  304.          TabIndex        =   43
  305.          Tag             =   "Generic 0"
  306.          Top             =   1320
  307.          Width           =   5775
  308.          Begin SSPanel gpanel 
  309.             BackColor       =   &H00C0C0C0&
  310.             BevelOuter      =   1  'Inset
  311.             BorderWidth     =   6
  312.             Caption         =   "Generic Page"
  313.             Font3D          =   3  'Inset w/light shading
  314.             FontBold        =   0   'False
  315.             FontItalic      =   0   'False
  316.             FontName        =   "MS Sans Serif"
  317.             FontSize        =   13.5
  318.             FontStrikethru  =   0   'False
  319.             FontUnderline   =   0   'False
  320.             Height          =   375
  321.             Index           =   0
  322.             Left            =   480
  323.             RoundedCorners  =   0   'False
  324.             TabIndex        =   47
  325.             Top             =   240
  326.             Width           =   4815
  327.          End
  328.          Begin PictureBox gicon 
  329.             AutoSize        =   -1  'True
  330.             BackColor       =   &H00C0C0C0&
  331.             BorderStyle     =   0  'None
  332.             Height          =   480
  333.             Index           =   0
  334.             Left            =   4680
  335.             Picture         =   MISC.FRX:0302
  336.             ScaleHeight     =   480
  337.             ScaleWidth      =   480
  338.             TabIndex        =   52
  339.             Top             =   840
  340.             Width           =   480
  341.          End
  342.          Begin CheckBox gCheck2 
  343.             BackColor       =   &H00C0C0C0&
  344.             Caption         =   "Check2"
  345.             Height          =   255
  346.             Index           =   0
  347.             Left            =   2400
  348.             TabIndex        =   22
  349.             Top             =   960
  350.             Width           =   1095
  351.          End
  352.          Begin CheckBox gcheck1 
  353.             BackColor       =   &H00C0C0C0&
  354.             Caption         =   "Check1"
  355.             Height          =   255
  356.             Index           =   0
  357.             Left            =   600
  358.             TabIndex        =   23
  359.             Top             =   960
  360.             Width           =   1335
  361.          End
  362.          Begin TextBox gtext2 
  363.             Height          =   1335
  364.             Index           =   0
  365.             Left            =   480
  366.             MultiLine       =   -1  'True
  367.             ScrollBars      =   2  'Vertical
  368.             TabIndex        =   46
  369.             Text            =   "Text2"
  370.             Top             =   2040
  371.             Width           =   4815
  372.          End
  373.          Begin TextBox gText1 
  374.             Height          =   285
  375.             Index           =   0
  376.             Left            =   480
  377.             TabIndex        =   50
  378.             Text            =   "Text1"
  379.             Top             =   1560
  380.             Width           =   4815
  381.          End
  382.       End
  383.       Begin CommonDialog cd 
  384.          CancelError     =   -1  'True
  385.          DialogTitle     =   "Select a File"
  386.          Filter          =   "*.ico;*.exe|*.ico;*.exe"
  387.          InitDir         =   "c:\windows"
  388.          Left            =   6480
  389.          Top             =   240
  390.       End
  391.       Begin PictureBox tabbox 
  392.          BackColor       =   &H00C0C0C0&
  393.          BorderStyle     =   0  'None
  394.          ClipControls    =   0   'False
  395.          Height          =   495
  396.          Left            =   0
  397.          ScaleHeight     =   33
  398.          ScaleMode       =   3  'Pixel
  399.          ScaleWidth      =   401
  400.          TabIndex        =   14
  401.          Top             =   0
  402.          Width           =   6015
  403.          Begin PictureBox invbox 
  404.             AutoRedraw      =   -1  'True
  405.             BackColor       =   &H00C0C0C0&
  406.             BorderStyle     =   0  'None
  407.             ClipControls    =   0   'False
  408.             Height          =   255
  409.             Left            =   1800
  410.             ScaleHeight     =   17
  411.             ScaleMode       =   3  'Pixel
  412.             ScaleWidth      =   81
  413.             TabIndex        =   15
  414.             Top             =   120
  415.             Visible         =   0   'False
  416.             Width           =   1215
  417.          End
  418.       End
  419.       Begin PictureBox IconPage 
  420.          BackColor       =   &H00FFFFFF&
  421.          ClipControls    =   0   'False
  422.          Height          =   3855
  423.          Index           =   0
  424.          Left            =   360
  425.          ScaleHeight     =   255
  426.          ScaleMode       =   3  'Pixel
  427.          ScaleWidth      =   383
  428.          TabIndex        =   21
  429.          Tag             =   "Leaf Demo1"
  430.          Top             =   2400
  431.          Width           =   5775
  432.          Begin PictureBox Leaf 
  433.             BorderStyle     =   0  'None
  434.             ClipControls    =   0   'False
  435.             FontBold        =   0   'False
  436.             FontItalic      =   0   'False
  437.             FontName        =   "MS Sans Serif"
  438.             FontSize        =   8.25
  439.             FontStrikethru  =   0   'False
  440.             FontUnderline   =   0   'False
  441.             Height          =   3735
  442.             Index           =   0
  443.             Left            =   0
  444.             ScaleHeight     =   249
  445.             ScaleMode       =   3  'Pixel
  446.             ScaleWidth      =   385
  447.             TabIndex        =   24
  448.             Top             =   375
  449.             Width           =   5775
  450.             Begin PictureBox leafpic 
  451.                AutoSize        =   -1  'True
  452.                BorderStyle     =   0  'None
  453.                ClipControls    =   0   'False
  454.                Height          =   480
  455.                Index           =   0
  456.                Left            =   600
  457.                Picture         =   MISC.FRX:0604
  458.                ScaleHeight     =   480
  459.                ScaleWidth      =   480
  460.                TabIndex        =   55
  461.                Top             =   120
  462.                Visible         =   0   'False
  463.                Width           =   480
  464.             End
  465.          End
  466.          Begin Label Label1 
  467.             Caption         =   "Click 'New Leaf' to add leafs; 'New Item' to add items"
  468.             FontBold        =   0   'False
  469.             FontItalic      =   0   'False
  470.             FontName        =   "MS Sans Serif"
  471.             FontSize        =   8.25
  472.             FontStrikethru  =   0   'False
  473.             FontUnderline   =   0   'False
  474.             Height          =   255
  475.             Left            =   120
  476.             TabIndex        =   59
  477.             Top             =   90
  478.             Width           =   3975
  479.          End
  480.          Begin Line leafheader 
  481.             Index           =   0
  482.             X1              =   0
  483.             X2              =   384
  484.             Y1              =   24
  485.             Y2              =   24
  486.          End
  487.          Begin Label leaflabel2 
  488.             BackStyle       =   0  'Transparent
  489.             Caption         =   "1 of 1"
  490.             Height          =   255
  491.             Left            =   4800
  492.             TabIndex        =   3
  493.             Top             =   90
  494.             Width           =   615
  495.          End
  496.          Begin Label leaflabel1 
  497.             Alignment       =   1  'Right Justify
  498.             BackStyle       =   0  'Transparent
  499.             Caption         =   "Leaf"
  500.             Height          =   255
  501.             Left            =   4200
  502.             TabIndex        =   25
  503.             Top             =   90
  504.             Width           =   495
  505.          End
  506.          Begin Image leafcorner 
  507.             Height          =   375
  508.             Left            =   5400
  509.             Picture         =   MISC.FRX:0906
  510.             Top             =   0
  511.             Width           =   375
  512.          End
  513.       End
  514.       Begin SSPanel Panel3D2 
  515.          BackColor       =   &H00C0C0C0&
  516.          BevelOuter      =   1  'Inset
  517.          BorderWidth     =   6
  518.          Font3D          =   3  'Inset w/light shading
  519.          FontBold        =   -1  'True
  520.          FontItalic      =   0   'False
  521.          FontName        =   "MS Sans Serif"
  522.          FontSize        =   12
  523.          FontStrikethru  =   0   'False
  524.          FontUnderline   =   0   'False
  525.          Height          =   3855
  526.          Left            =   480
  527.          RoundedCorners  =   0   'False
  528.          TabIndex        =   34
  529.          Tag             =   "Captions"
  530.          Top             =   3240
  531.          Width           =   5775
  532.          Begin SSFrame Frame3D4 
  533.             Caption         =   "Font"
  534.             Font3D          =   3  'Inset w/light shading
  535.             FontBold        =   0   'False
  536.             FontItalic      =   0   'False
  537.             FontName        =   "MS Sans Serif"
  538.             FontSize        =   8.25
  539.             FontStrikethru  =   0   'False
  540.             FontUnderline   =   0   'False
  541.             ForeColor       =   &H00000000&
  542.             Height          =   2655
  543.             Left            =   240
  544.             TabIndex        =   19
  545.             Top             =   720
  546.             Width           =   2295
  547.             Begin ListBox List1 
  548.                FontBold        =   0   'False
  549.                FontItalic      =   0   'False
  550.                FontName        =   "MS Sans Serif"
  551.                FontSize        =   8.25
  552.                FontStrikethru  =   0   'False
  553.                FontUnderline   =   0   'False
  554.                Height          =   2175
  555.                Left            =   120
  556.                TabIndex        =   36
  557.                Top             =   360
  558.                Width           =   2055
  559.             End
  560.          End
  561.          Begin SSFrame Frame3D3 
  562.             Caption         =   "Captions"
  563.             Font3D          =   3  'Inset w/light shading
  564.             FontBold        =   0   'False
  565.             FontItalic      =   0   'False
  566.             FontName        =   "MS Sans Serif"
  567.             FontSize        =   8.25
  568.             FontStrikethru  =   0   'False
  569.             FontUnderline   =   0   'False
  570.             ForeColor       =   &H00000000&
  571.             Height          =   2055
  572.             Left            =   2760
  573.             TabIndex        =   38
  574.             Top             =   720
  575.             Width           =   2775
  576.             Begin TextBox Text1 
  577.                Height          =   285
  578.                Left            =   120
  579.                MaxLength       =   13
  580.                TabIndex        =   40
  581.                Top             =   1560
  582.                Width           =   2535
  583.             End
  584.             Begin ComboBox Combo1 
  585.                Height          =   300
  586.                Left            =   120
  587.                Style           =   2  'Dropdown List
  588.                TabIndex        =   39
  589.                Top             =   600
  590.                Width           =   2535
  591.             End
  592.             Begin Label l 
  593.                BackStyle       =   0  'Transparent
  594.                Caption         =   "Text:"
  595.                Height          =   255
  596.                Index           =   0
  597.                Left            =   120
  598.                TabIndex        =   42
  599.                Top             =   1320
  600.                Width           =   1215
  601.             End
  602.             Begin Label Label7 
  603.                BackStyle       =   0  'Transparent
  604.                Caption         =   "Tab:"
  605.                Height          =   255
  606.                Left            =   120
  607.                TabIndex        =   41
  608.                Top             =   360
  609.                Width           =   1455
  610.             End
  611.          End
  612.          Begin SSPanel Panel3D3 
  613.             BackColor       =   &H00C0C0C0&
  614.             BevelOuter      =   1  'Inset
  615.             BorderWidth     =   6
  616.             Caption         =   "Tab Captions"
  617.             Font3D          =   3  'Inset w/light shading
  618.             FontBold        =   0   'False
  619.             FontItalic      =   0   'False
  620.             FontName        =   "MS Sans Serif"
  621.             FontSize        =   13.5
  622.             FontStrikethru  =   0   'False
  623.             FontUnderline   =   0   'False
  624.             Height          =   375
  625.             Left            =   240
  626.             RoundedCorners  =   0   'False
  627.             TabIndex        =   37
  628.             Top             =   120
  629.             Width           =   5295
  630.          End
  631.          Begin CommandButton Command3 
  632.             BackColor       =   &H00000000&
  633.             Caption         =   "Apply Now"
  634.             Height          =   375
  635.             Left            =   3000
  636.             TabIndex        =   35
  637.             Top             =   3000
  638.             Width           =   2295
  639.          End
  640.       End
  641.       Begin TextBox tbox 
  642.          BackColor       =   &H00C0C0C0&
  643.          FontBold        =   0   'False
  644.          FontItalic      =   0   'False
  645.          FontName        =   "MS Sans Serif"
  646.          FontSize        =   8.25
  647.          FontStrikethru  =   0   'False
  648.          FontUnderline   =   0   'False
  649.          Height          =   3855
  650.          Left            =   480
  651.          MultiLine       =   -1  'True
  652.          ScrollBars      =   2  'Vertical
  653.          TabIndex        =   12
  654.          Tag             =   "Intro"
  655.          Top             =   2760
  656.          Width           =   5775
  657.       End
  658.    End
  659.    Begin PictureBox loader 
  660.       AutoRedraw      =   -1  'True
  661.       AutoSize        =   -1  'True
  662.       BorderStyle     =   0  'None
  663.       ClipControls    =   0   'False
  664.       Height          =   480
  665.       Left            =   7200
  666.       ScaleHeight     =   32
  667.       ScaleMode       =   3  'Pixel
  668.       ScaleWidth      =   32
  669.       TabIndex        =   4
  670.       Top             =   720
  671.       Visible         =   0   'False
  672.       Width           =   480
  673.    End
  674.    Begin SSPanel status 
  675.       Alignment       =   0  'Left Justify - TOP
  676.       BackColor       =   &H00C0C0C0&
  677.       BevelInner      =   1  'Inset
  678.       Font3D          =   3  'Inset w/light shading
  679.       FontBold        =   0   'False
  680.       FontItalic      =   0   'False
  681.       FontName        =   "MS Sans Serif"
  682.       FontSize        =   8.25
  683.       FontStrikethru  =   0   'False
  684.       FontUnderline   =   0   'False
  685.       Height          =   375
  686.       Left            =   0
  687.       Outline         =   -1  'True
  688.       RoundedCorners  =   0   'False
  689.       TabIndex        =   2
  690.       Top             =   5280
  691.       Width           =   6975
  692.    End
  693.    Begin PictureBox picToolbar 
  694.       Align           =   1  'Align Top
  695.       BackColor       =   &H8000000F&
  696.       ClipControls    =   0   'False
  697.       Height          =   495
  698.       Left            =   0
  699.       ScaleHeight     =   465
  700.       ScaleWidth      =   8190
  701.       TabIndex        =   1
  702.       Top             =   0
  703.       Width           =   8220
  704.       Begin CommandButton newitem 
  705.          BackColor       =   &H00000000&
  706.          Caption         =   "New Item"
  707.          FontBold        =   0   'False
  708.          FontItalic      =   0   'False
  709.          FontName        =   "MS Sans Serif"
  710.          FontSize        =   8.25
  711.          FontStrikethru  =   0   'False
  712.          FontUnderline   =   0   'False
  713.          Height          =   330
  714.          Left            =   3480
  715.          TabIndex        =   58
  716.          Top             =   60
  717.          Visible         =   0   'False
  718.          Width           =   1095
  719.       End
  720.       Begin CommandButton newleaf 
  721.          BackColor       =   &H00000000&
  722.          Caption         =   "New Leaf"
  723.          FontBold        =   0   'False
  724.          FontItalic      =   0   'False
  725.          FontName        =   "MS Sans Serif"
  726.          FontSize        =   8.25
  727.          FontStrikethru  =   0   'False
  728.          FontUnderline   =   0   'False
  729.          Height          =   330
  730.          Left            =   2280
  731.          TabIndex        =   57
  732.          Top             =   60
  733.          Visible         =   0   'False
  734.          Width           =   1095
  735.       End
  736.       Begin Line Line6 
  737.          BorderColor     =   &H00808080&
  738.          X1              =   0
  739.          X2              =   7920
  740.          Y1              =   450
  741.          Y2              =   450
  742.       End
  743.       Begin Line Line5 
  744.          BorderColor     =   &H00FFFFFF&
  745.          X1              =   0
  746.          X2              =   7920
  747.          Y1              =   0
  748.          Y2              =   0
  749.       End
  750.       Begin Line Line4 
  751.          BorderColor     =   &H00FFFFFF&
  752.          X1              =   0
  753.          X2              =   0
  754.          Y1              =   0
  755.          Y2              =   480
  756.       End
  757.       Begin Image i 
  758.          Height          =   330
  759.          Index           =   0
  760.          Left            =   120
  761.          Picture         =   MISC.FRX:0B10
  762.          Top             =   60
  763.          Width           =   360
  764.       End
  765.       Begin Image i 
  766.          Height          =   330
  767.          Index           =   1
  768.          Left            =   480
  769.          Picture         =   MISC.FRX:0C92
  770.          Top             =   60
  771.          Width           =   360
  772.       End
  773.       Begin Image i 
  774.          Height          =   330
  775.          Index           =   2
  776.          Left            =   960
  777.          Picture         =   MISC.FRX:0E14
  778.          Top             =   60
  779.          Width           =   375
  780.       End
  781.       Begin Image i 
  782.          Height          =   330
  783.          Index           =   3
  784.          Left            =   1320
  785.          Picture         =   MISC.FRX:0FEE
  786.          Top             =   60
  787.          Width           =   375
  788.       End
  789.       Begin Image i 
  790.          Height          =   330
  791.          Index           =   4
  792.          Left            =   1680
  793.          Picture         =   MISC.FRX:11C8
  794.          Top             =   60
  795.          Width           =   375
  796.       End
  797.    End
  798.    Begin SSPanel p1 
  799.       BackColor       =   &H00C0C0C0&
  800.       BevelInner      =   2  'Raised
  801.       BorderWidth     =   6
  802.       Font3D          =   3  'Inset w/light shading
  803.       Height          =   4785
  804.       Left            =   0
  805.       Outline         =   -1  'True
  806.       RoundedCorners  =   0   'False
  807.       TabIndex        =   0
  808.       Top             =   495
  809.       Width           =   915
  810.       Begin SSCommand b 
  811.          Font3D          =   0  'None
  812.          Height          =   615
  813.          Index           =   6
  814.          Left            =   150
  815.          RoundedCorners  =   0   'False
  816.          TabIndex        =   11
  817.          Top             =   3750
  818.          Width           =   615
  819.       End
  820.       Begin SSCommand b 
  821.          Font3D          =   0  'None
  822.          Height          =   615
  823.          Index           =   5
  824.          Left            =   150
  825.          RoundedCorners  =   0   'False
  826.          TabIndex        =   10
  827.          Top             =   3150
  828.          Width           =   615
  829.       End
  830.       Begin SSCommand b 
  831.          Font3D          =   0  'None
  832.          Height          =   615
  833.          Index           =   4
  834.          Left            =   150
  835.          RoundedCorners  =   0   'False
  836.          TabIndex        =   9
  837.          Top             =   2550
  838.          Width           =   615
  839.       End
  840.       Begin SSCommand b 
  841.          Font3D          =   0  'None
  842.          Height          =   615
  843.          Index           =   3
  844.          Left            =   150
  845.          RoundedCorners  =   0   'False
  846.          TabIndex        =   8
  847.          Top             =   1950
  848.          Width           =   615
  849.       End
  850.       Begin SSCommand b 
  851.          Font3D          =   0  'None
  852.          Height          =   615
  853.          Index           =   2
  854.          Left            =   150
  855.          Picture         =   MISC.FRX:13A2
  856.          RoundedCorners  =   0   'False
  857.          TabIndex        =   7
  858.          Top             =   1350
  859.          Width           =   615
  860.       End
  861.       Begin SSCommand b 
  862.          Font3D          =   0  'None
  863.          Height          =   615
  864.          Index           =   1
  865.          Left            =   150
  866.          Picture         =   MISC.FRX:16A4
  867.          RoundedCorners  =   0   'False
  868.          TabIndex        =   6
  869.          Top             =   750
  870.          Width           =   615
  871.       End
  872.       Begin SSCommand b 
  873.          Font3D          =   0  'None
  874.          Height          =   615
  875.          Index           =   0
  876.          Left            =   150
  877.          Picture         =   MISC.FRX:19A6
  878.          RoundedCorners  =   0   'False
  879.          TabIndex        =   5
  880.          Top             =   150
  881.          Width           =   615
  882.       End
  883.       Begin Image Image6 
  884.          Height          =   255
  885.          Index           =   1
  886.          Left            =   465
  887.          Picture         =   MISC.FRX:1CA8
  888.          Top             =   4380
  889.          Width           =   300
  890.       End
  891.       Begin Image Image6 
  892.          Height          =   255
  893.          Index           =   0
  894.          Left            =   150
  895.          Picture         =   MISC.FRX:1DEE
  896.          Top             =   4380
  897.          Width           =   300
  898.       End
  899.    End
  900. Option Explicit
  901. Dim nl$
  902. Dim page() As Control
  903. Dim tb As TabData
  904. 'used for new pages demo
  905. Const GWW_HINSTANCE = (-6)
  906. Declare Sub SetParent Lib "User" (ByVal hWndChild%, ByVal hWndNewParent%)
  907. 'used for leaf demo
  908. Dim lp As leafpage
  909. Dim pic() As Control
  910. Dim cap(0 To 7) As Control
  911. Declare Function GetWindowWord% Lib "User" (ByVal hWnd%, ByVal nIndex%)
  912. Declare Function ExtractIcon% Lib "shell.dll" (ByVal hisnt%, ByVal lpszExeName$, ByVal iIcon%)
  913. Declare Function DrawIcon% Lib "User" (ByVal hDC%, ByVal x%, ByVal y%, ByVal hIcon%)
  914. Sub Combo1_Click ()
  915. text1 = combo1
  916. End Sub
  917. Sub Command1_Click ()
  918. If o(1).Value Then
  919.     tb.orient = 1
  920. Else tb.orient = 0
  921. End If
  922. If o1(1).Value Then
  923.     tb.cols = 3
  924. Else tb.cols = 2
  925. End If
  926. DefineControl Me, tabbox, invbox, page(), tb
  927. End Sub
  928. Sub Command3_Click ()
  929. If text1 <> "" Then
  930.     page(combo1.ListIndex).Tag = text1
  931. End If
  932. DrawText tabbox, page(), tb
  933. End Sub
  934. Sub Form_Load ()
  935. Dim s$
  936. nl = Chr$(13) & Chr$(10)
  937. PlaceThings
  938. Initialize
  939. LoadText
  940. Move left, top, 7005, 5975
  941. End Sub
  942. Sub Form_Resize ()
  943. Dim i%
  944. If windowstate <> 1 Then
  945.     TabResize Me, -1, -1, tabbox, invbox, page(), tb
  946.     'adjust the pages as you wish
  947.     'PageResize Me, -1, -1, page(), tb
  948. End If
  949. End Sub
  950. Function GetIcon (f As Form, file$, c As Control)
  951. Dim inst%, hIcon%, r%
  952. inst% = GetWindowWord(f.hWnd, GWW_HINSTANCE)
  953. hIcon% = ExtractIcon(inst%, file$, 0)
  954. If hIcon% > 1 Then 'no icons
  955.    loader.Cls
  956.    r% = DrawIcon(loader.hDC, 0, 0, hIcon)
  957.    c.Picture = loader.Image
  958.    GetIcon = -1
  959. End If
  960. End Function
  961. Sub Initialize ()
  962. Dim i%, numpages%
  963. numpages = 5            'set to highest index (total-1)
  964. '===create an array of controls=======
  965. ReDim page(0 To numpages)
  966. 'for this example, use an assortment of control types
  967. 'as the pages
  968. Set page(0) = tbox
  969. Set page(4) = IconPage(0)
  970. Set page(5) = generic(0)
  971. Set page(3) = NewPages
  972. Set page(1) = panel3d
  973. Set page(2) = panel3d2
  974. '===fill in the fields of the struct=====================
  975. tb.num = numpages       'number of tabs
  976. tb.active = 0           'initial focus
  977. tb.cols = 3             'number of tabs in each row
  978. tb.orient = tabsup      '0 = up, 1 = down
  979. 'if the tab control does not fill the form, you must
  980. 'define the size of the control
  981. '(note: width will be set to the tabbox width)
  982. tb.left = 15
  983. tb.top = 15
  984. tb.Height = p2.Height * 15
  985. tb.Width = p2.Width * 15 - 30
  986. 'optional:
  987. tb.insetx = 120
  988. tb.insety = 120
  989. DefineControl Me, tabbox, invbox, page(), tb
  990. End Sub
  991. Sub leaf_paint (Index As Integer)
  992. Dim x%, y%, s$, lf%
  993. lf = Index * 8
  994. For x = 0 To 3
  995. For y = 0 To 1
  996.     's$ = lp.Caption(lp.active * 8 + y * 4 + x + 1)
  997.     s$ = lp.Caption(lf + y * 4 + x + 1)
  998.     If s <> "" Then
  999.     leaf(Index).CurrentX = x * 80 + 26
  1000.     leaf(Index).CurrentY = y * 112 + 56
  1001.     leaf(Index).Print s
  1002.     End If
  1003. Next: Next
  1004. End Sub
  1005. Sub leafcorner_Click ()
  1006. Dim n%
  1007. n = lp.active + 1
  1008. If n > lp.numleafs Then n = 0
  1009. leaflabel2 = Format(n + 1) & " of " & Format(lp.numleafs + 1)
  1010. leaf(n).ZOrder
  1011. lp.active = n
  1012. End Sub
  1013. Sub leafpic_Click (Index As Integer)
  1014. MsgBox "Item clicked."
  1015. End Sub
  1016. Sub List1_Click ()
  1017. tabbox.FontName = screen.Fonts(list1.ListIndex)
  1018. End Sub
  1019. Sub LoadText ()
  1020. Dim s$, i%
  1021. If tb.orient Then o(1).Value = True
  1022. For i = 0 To screen.FontCount - 1: list1.AddItem screen.Fonts(i): Next
  1023. For i = 0 To tb.num: combo1.AddItem page(i).Tag: Next
  1024. s$ = nl & nl & "   This sample demonstrates the placement of the tab control on a form with other controls."
  1025. s$ = s$ & nl & nl & "   It also demonstrates an assortment of other variations on the control's usage."
  1026. s = s & " It shows the use of multiple control types as the tab control's 'pages'."
  1027. s = s & " It demonstrates the placement of the tabs on a container other than a form (e.g. a 3d panel)."
  1028. s = s & " And it shows how to implement runtime property changes."
  1029. s = s & nl & nl & " A couple of extra steps are required in this case."
  1030. s$ = s$ & nl & nl & "     1. You must set the Left, Top, and Height properties before calling DefineControl(). If you do not set Width, it will default to the designtime width of the tabbox. Note that this differs from the case when all these values are 0, which defaults to the size of Page(). "
  1031. s$ = s$ & nl & nl & "     2. You must handle resizing the tabbox and the pages if you place it on a resizable window. (Not supported and not recommended. I haven't tried it; extensive code modification may be required.)"
  1032. s$ = s$ & nl & nl & "     3. You must assign controls to the page() array with individual Set statements for each page()."
  1033. s$ = s$ & nl & nl & "     4. The tab control code only draws within the tabbox; if you wish to get a proper 3D effect, you must handle the additional drawing yourself. An early version of this sample used 6 Line controls to achieve consistency with the other controls. This worked fine but made design modifications a nightmare."
  1034. s$ = s$ & " It now sits on a 3D panel."
  1035. s = s & nl & nl & " This sample is fairly well junked up with dummy controls. It should give you some indication of how the performance of the code is affected by an increase in the number of controls on each page. The hit should be negligible, but notice that some combinations refresh more slowly, and flipping between light and dark backgrounds can be unpleasant."
  1036. tbox = s
  1037. End Sub
  1038. Sub newitem_Click ()
  1039. If lp.num(lp.active) > 7 Then Beep: Exit Sub
  1040. Dim r%, f$, x%, y%
  1041. Dim position%
  1042. On Error Resume Next
  1043. cd.Action = 1
  1044. If Err = 32755 Then Exit Sub
  1045. f$ = cd.Filename
  1046. 'load a picturebox   values: 1 to 32
  1047. lp.total = lp.total + 1: Debug.Print lp.total
  1048. ReDim Preserve pic(1 To lp.total)
  1049. Load leafpic(lp.total)
  1050. Set pic(lp.total) = leafpic(lp.total)
  1051.     'load a picture into it
  1052.     If Right$(cd.Filename, 3) = "ico" Then
  1053.     pic(lp.total).Picture = LoadPicture(f$)
  1054.     Else
  1055.     If Not GetIcon(Me, f$, pic(lp.total)) Then
  1056.         MsgBox "Cannot extract an icon from this file."
  1057.         pic(lp.total).Picture = leafpic(0).Picture
  1058.     End If
  1059.     End If
  1060.     'set its parent
  1061.     SetParent pic(lp.total).hWnd, leaf(lp.active).hWnd
  1062.     'increment number of items on this leaf
  1063.     'values: 1 - 8
  1064.     lp.num(lp.active) = lp.num(lp.active) + 1
  1065.     Debug.Print lp.num(lp.active)
  1066.     'each position has a unique index, remember what's there
  1067.     'values: 1 - 32
  1068.     position% = lp.active * 8 + lp.num(lp.active)
  1069.     Debug.Print position
  1070.     lp.item(position) = lp.total
  1071.     'save the caption
  1072.     lp.Caption(position) = LCase(cd.Filetitle)
  1073.     'move the pic into position
  1074.     y = ((lp.num(lp.active) - 1) \ 4) * 112 + 16
  1075.     Debug.Print y
  1076.     x = ((lp.num(lp.active) - 1) Mod 4) * 80 + 40
  1077.     Debug.Print x
  1078.     pic(lp.total).Move x, y
  1079.     pic(lp.total).Visible = -1
  1080. leaf_paint lp.active
  1081. End Sub
  1082. Sub newleaf_Click ()
  1083. Dim n%
  1084. If lp.numleafs > 2 Then Beep: Exit Sub
  1085. lp.numleafs = lp.numleafs + 1
  1086. n = lp.numleafs
  1087. Load leaf(n)
  1088. leaflabel2 = Format(n + 1) & " of " & Format(lp.numleafs + 1)
  1089. leaf(n).Visible = -1
  1090. leaf(n).ZOrder
  1091. lp.active = n
  1092. If n > 2 Then newleaf.Enabled = 0
  1093. End Sub
  1094. Sub newpage_Click (Index As Integer)
  1095. Static n%
  1096. If Index = 0 Then 'create a  page
  1097. If n > 3 Then Beep: Exit Sub
  1098. n = n + 1
  1099. Load generic(n)
  1100. If newtag = "" Then
  1101.     generic(n).Tag = "Generic" & Format(n)
  1102.     generic(n).Tag = newtag
  1103. End If
  1104.     If chk(0).Value Then
  1105.     Load gtext1(n)
  1106.     SetParent gtext1(n).hWnd, generic(n).hWnd
  1107.     gtext1(n).Visible = -1
  1108.     Load gtext2(n)
  1109.     SetParent gtext2(n).hWnd, generic(n).hWnd
  1110.     gtext2(n).Visible = -1
  1111.     End If
  1112.     If chk(1).Value Then
  1113.     Load gpanel(n)
  1114.     SetParent gpanel(n).hWnd, generic(n).hWnd
  1115.     gpanel(n).Caption = "Generic Page " & Format(n)
  1116.     gpanel(n).Visible = -1
  1117.     End If
  1118.     If chk(2).Value Then
  1119.     Load gcheck1(n)
  1120.     SetParent gcheck1(n).hWnd, generic(n).hWnd
  1121.     gcheck1(n).Visible = -1
  1122.     Load gcheck2(n)
  1123.     SetParent gcheck2(n).hWnd, generic(n).hWnd
  1124.     gcheck2(n).Visible = -1
  1125.     End If
  1126.     If chk(3).Value Then
  1127.     Load gicon(n)
  1128.     SetParent gicon(n).hWnd, generic(n).hWnd
  1129.     gicon(n).Visible = -1
  1130.     End If
  1131. 'add to the pages array
  1132. tb.num = tb.num + 1
  1133. ReDim Preserve page(0 To tb.num)
  1134. Set page(tb.num) = generic(n)
  1135. If tb.cols < 5 Then tb.cols = 5
  1136. generic(n).Visible = -1
  1137. DefineControl Me, tabbox, invbox, page(), tb
  1138. Else 'destroy last page
  1139.     If n = 0 Then Beep: Exit Sub
  1140.     n = n - 1
  1141.     tb.num = tb.num - 1
  1142.     ReDim Preserve page(0 To tb.num)
  1143.     Unload generic(n + 1)
  1144.     If n = 0 Then tb.cols = 3
  1145.     DefineControl Me, tabbox, invbox, page(), tb
  1146. End If
  1147. End Sub
  1148. Sub PlaceThings ()
  1149. p1.Move 0, 33, 61, 319
  1150. p2.Move 61, 33, 404, 319
  1151. status.Move 0, 352, 465, 25
  1152. End Sub
  1153. Sub tabbox_MouseUp (Button As Integer, Shift As Integer, x As Single, y As Single)
  1154. TabClick Button, x, y, tabbox, page(), tb
  1155. If tb.active = 4 Then
  1156.     newleaf.Visible = -1
  1157.     newitem.Visible = -1
  1158.     newleaf.Visible = 0
  1159.     newitem.Visible = 0
  1160. End If
  1161. End Sub
  1162. Sub tabbox_Paint ()
  1163. DrawText tabbox, page(), tb
  1164. End Sub
  1165. Sub Text1_KeyPress (keyascii As Integer)
  1166. If keyascii = 13 Then
  1167. command3.Value = -1
  1168. keyascii = 0
  1169. End If
  1170. End Sub
  1171.